package com.cloud.api.upms.domain.user;

import cn.hutool.core.util.StrUtil;
import com.cloud.common.core.result.Page;
import lombok.Data;

import jakarta.validation.constraints.NotNull;

/**
 * Author:  xuanning
 * Date:    2023/2/3 14:58
 */
@Data
public class UserListReq {

    /**
     *部门id
     */
    private Long deptId;
    /**
     *账号名称
     */
    private String userName;
    /**
     *用户名
     */
    private String name;
    /**
     *电话号码
     */
    private String phone;

    private Page page=new Page();


    public String getUserName() {
        if(StrUtil.isBlank(userName)){
            userName=null;
        }
        return userName;
    }

    public String getName() {
        if(StrUtil.isBlank(name)){
            name=null;
        }
        return name;
    }
}
